#!/usr/bin/python
import os
import sys
import math
db = int(sys.argv[1])
clist = [];
for i in range(db+1):
	clist.append([])
clist[0].append(1)
for i in range(1,db+1):
	clist[i].append(1)
	for j in range(1,i):
		clist[i].append(clist[i-1][j]+clist[i-1][j-1])
	clist[i].append(1);
weight = 0
print "hamweight[] ={ ",
for i in range(0,db+1):
	weight = weight + clist[db][i]
	if i >= db/2:
		print 0,",",
	else:
		print db - math.log(weight,2),",",
	if i>0 and (i+1)%10 ==0:
		print ""
print " };"






	
	
	
	
